
namespace PsVcs
{
    public class Attendee
    {
        private double _fees;
        private string _id;

        private Attendee()
        {
            
        }

        public Attendee(string pId):this()
        {
            Id = pId;
        }

        public double Fees
        {
            get { return _fees; }
            set { _fees = value; }
        }

        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public override bool Equals(object obj)
        {
            Attendee oAttendee = (Attendee) obj;
            return Id.Equals(oAttendee.Id);
        }

        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }
    }
}
